package com.ksd.modules.download.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ksd.commons.AbstractSelftTimeEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("xk_downloads")
@SuperBuilder(toBuilder = true)
@ApiModel(value = "AdminDowmloads", description = "下载资源管理")
public class AdminDownloads extends AbstractSelftTimeEntity {
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("一级分类")
    private Long categoryPid;
    @ApiModelProperty("一级分类名称")
    private String categoryPname;
    @ApiModelProperty("二级分类")
    private Long categoryId;
    @ApiModelProperty("二级分类名称")
    private String categoryName;
    @ApiModelProperty("内容")
    private String content;
    @ApiModelProperty("标签")
    private String tags;
    @ApiModelProperty("封面")
    private String img;
    @ApiModelProperty("描述")
    private String description;
    @ApiModelProperty("用户唯一标识")
    private String uuid;
    @ApiModelProperty("上传用户头像")
    private String avatar;
    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("昵称")
    private String nickname;
    @ApiModelProperty("上传用户ID")
    private Long userid;

    @ApiModelProperty("收藏人数")
    private Integer favNum;
    @ApiModelProperty("喜欢人数")
    private Integer likeNum;
    @ApiModelProperty("评论数量")
    private Integer commentNum;
    @ApiModelProperty("购买人数")
    private Integer buyNum;
    @ApiModelProperty("预览数量")
    private Integer viewcount;
    @ApiModelProperty("下载数量")
    private Integer downloadNums;

    @ApiModelProperty("是否最新 1最新 0非最新")
    private Integer newFlag;
    @ApiModelProperty("是否热门 1热门0非热门")
    private Integer hotFlag;
    @ApiModelProperty("是否允许评论 1允许 0不允许")
    private Integer commentFlag;
    @ApiModelProperty("是否推荐 1推荐 0不推荐")
    private Integer pushFlag;
    @ApiModelProperty("购买价格")
    private String price;
    @ApiModelProperty("学习金币")
    private Integer coin;
    @ApiModelProperty("真实价格")
    private String realprice;
    @ApiModelProperty("1免费  2 收费")
    private Integer payFlag;
    @ApiModelProperty("1所有人可见 2 VIP可见 3：SVIP可见")
    private Integer vipFlag;
    @ApiModelProperty("1内站打开 2外站打开")
    private Integer mode;
    @ApiModelProperty("站外访问地址")
    private String url;
    @ApiModelProperty("官网地址")
    private String netLink;
    @ApiModelProperty("网盘地址")
    private String panLink;
    @ApiModelProperty("网盘密码")
    private String panPwd;
    @ApiModelProperty("体验地址")
    private String tryLink;
    @ApiModelProperty("其他信息json格式")
    private String otherinfo;
    @ApiModelProperty("课程类型 1 基础课  2 进阶课  4 面试课  3 实战课程")
    private Integer downloadstype;
    @ApiModelProperty("客服号")
    private String clientLink;
    @ApiModelProperty("客服名称")
    private String clientLinkName;
    @ApiModelProperty("客服二维码")
    private String clientLinkImg;
    @ApiModelProperty("qq群")
    private String qqLinkCode;
    @ApiModelProperty("qq群名称")
    private String qqLinkName;
    @ApiModelProperty("qq群二维码")
    private String qqLinkImg;
    @ApiModelProperty("微信群号")
    private String weixinLink;
    @ApiModelProperty("微信群名称")
    private String weixinLinkName;
    @ApiModelProperty("微信二维")
    private String weixinLinkImg;
    @ApiModelProperty("是否打开营销 1打开 0 不打开")
    private Integer clientFlag;
    @ApiModelProperty("微信公众号")
    private String weixingzcode;
    @ApiModelProperty("微信公众号图片")
    private String weixingzimg;
    @ApiModelProperty("是否打开公众号 1 打开 0不打开")
    private Integer opengz;
    @ApiModelProperty("视频ID")
    private String videoid;
    @ApiModelProperty("是否显示专题 1显示 0不显示")
    private Integer specialFlag;
    @ApiModelProperty("是否显示课程 1显示 0不显示")
    private Integer showFlag;

    public static class Columns {
        public static String IS_DELETED = "is_deleted";
        public static String STATUS = "status";
    }
}
